//ConsistentComponent类
package cn.edu.scau.cmi.yangzhichao.composite.consistent;

public abstract class ConsistentComponent {
    protected String name;

    public ConsistentComponent(String name)
    {
        this.name = name;
    }
    public abstract void display(int level);
    public abstract void addChild(ConsistentComponent consistentComponent);
    public abstract void deleteChild(int index);
    public abstract void updateChild(ConsistentComponent consistentComponent,int index);
}
